package com.server.impl;

import com.dao.sell.SellMapper;
import com.server.SellService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SellServiceImpl implements SellService {

    @Resource
    SellMapper sellMapper;

    @Override
    public int addSell(int sell_amounts, double sell_sum_price, String order_code, int product_id, String product_name, String product_image) {
        return sellMapper.addSell(sell_amounts, sell_sum_price, order_code, product_id, product_name, product_image);
    }

    @Override
    public int deleteSell(String order_code) {
        return sellMapper.deleteSell(order_code);
    }
}
